/**
 * @type {*[]}
 */
var mqttUserStateEnum = [
  {
    code: 1,
    desc: '激活'
  },
  {
    code: 2,
    desc: '关闭'
  }
]

export function getMqttUserStateDesc(code) {
  for (var i in mqttUserStateEnum) {
    if (code == mqttUserStateEnum[i].code) {
      return mqttUserStateEnum[i].desc
    }
  }
}

export function getMqttUserStateEnum() {
  return mqttUserStateEnum
}
